import request from "../utils/request";
//通过userName查询漫游路径列表
export const getRoamingPathByUserId = (params) =>{
    return request.get("/RoamingPath/GetRoamingPathByUserId", {
        params
    })
}

//通过场景id查询漫游路径列表
export const getRoamingPathBySenceId = (params) =>{
    return request.get("/RoamingPath/GetRoamingPathBySenceId", {
        params
    })
}

//通过场景id查询漫游路径列表
export const bindOnePathSence = (data) =>{
    return request.post("/RoamingPath/BindOnePathSence",data)
}

//请求查询关联漫游路径的关键帧列表
export const getKeyFrameList = (data) =>{
    return request.get("/NavkeyFrame/GetNavkeyFrameList?id="+data)
}
//请求删除漫游路径
export const deleteRoamingPath = (params) =>{
    return request.delete("/RoamingPath/DeleteRoamingPath", {
        params
    })
}

// 漫游路径绑定多个场景
export const bindPathSence = (data) =>{
    return request.post("/RoamingPath/BindPathSence", data)
}

// 通过漫游路径查询绑定的场景
export const getSenceIdsByRoamingPath = (params) =>{
    return request.get("/RoamingPath/GetSenceIdsByRoamingPath", {
        params
    })
}

//请求删除关键帧
export const deleteKeyFrame = (data) =>{
    return request.delete("/NavkeyFrame/RomveKeyFrame?id="+data)
}
//请求编辑漫游路径
export const editRoamingPath = (data) =>{
    return request.post("/RoamingPath/UpdateRoamingPath",data)
}
//请求编辑关键帧
export const editKeyFrame = (data) =>{
    return request.post("/NavkeyFrame/EditKeyFrame",data)
}
//请求上移关键帧
export const upKeyFrame = (data) =>{
    return request.post("/NavkeyFrame/KeyFrameUp",data)
}
//请求下移关键帧
export const downKeyFrame = (data) =>{
    return request.post("/NavkeyFrame/KeyFrameDown",data)
}
//请求添加漫游路径
export const addRoamingPath = (data) =>{
    return request.post('/RoamingPath/AddRoamingPath',
    data,{headers:{"Content-Type":'application/json;charset=utf-8'}})
}
//请求添加关键帧
export const addKeyFrame = (data) =>{
    return request.post("/NavkeyFrame/AddKeyFrame",data)
}
